package net.sx.minemodule.mvp.bean;

/**
 * Created by Administrator 可爱的路人 on 2019/7/5.
 * Email:513421345@qq.com
 * 接口文档说明：0 退款，1 退款退货，2换货
 */
public class EnumRefundType {
    public static final EnumRefundType REFUND = new EnumRefundType(0, "退款");
    public static final EnumRefundType REFUND_GOODS = new EnumRefundType(1, "退款退货");
    public static final EnumRefundType CHANGE_GOODS = new EnumRefundType(2, "换货");

    public static String getRefundTypeName(int key) {
        switch (key) {
            case 0:
                return REFUND.value;
            case 1:
                return REFUND_GOODS.value;
            case 2:
                return CHANGE_GOODS.value;
        }
        return "";
    }

    private final int key;
    private final String value;

    private EnumRefundType(int key, String value) {
        this.key = key;
        this.value = value;
    }

    public int getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
